* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f0f7ff;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 容器样式 - 宽度640px并居中 */
.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    flex: 1;
}

/* 头部图片样式 */
.header-img {
    width: 100%;
    max-width: 640px;
    display: block;
}

/* 底部图片样式 */
.footer-img {
    width: 100%;
    max-width: 640px;
    display: block;
}

.form-container {
    background-color: white;
    border-radius: 12px;
    width: 100%;
}



.form-label {
    display: block;
    font-size: 16px;
    margin: 10px 0;
    color: #666;
}

.form-label span {
    color: #999;
    font-size: 16px;
}

/* 优化input样式 - 兼容安卓和iOS */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    height: 44px;
    line-height: 1.5;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-text-fill-color: #333;
}

/* 解决iOS input默认样式问题 */
input[type="text"],
input[type="number"],
input[type="tel"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 优化placeholder颜色 */
.form-input::-webkit-input-placeholder {
    color: #bbb;
    -webkit-text-fill-color: #bbb;
}

.form-input:-moz-placeholder {
    color: #bbb;
}

.form-input::-moz-placeholder {
    color: #bbb;
}

.form-input:-ms-input-placeholder {
    color: #bbb;
}

/* 纯CSS性别选择实现 */
.gender-selector {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    position: relative;
}

.gender-option {
    flex: 1;
}


.gender-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-label {
    display: block;
    padding: 10px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-radio:checked+.gender-label {
    border-color: #5a3d9e;
    background-color: #f0e6ff;
    color: #5a3d9e;
    font-weight: 500;
}

/* .gender-radio:focus+.gender-label {
    box-shadow: 0 0 0 2px rgba(90, 61, 158, 0.3);
} */

.gender-radio:active+.gender-label {
    transform: scale(0.98);
}

.gender-radio:checked+.gender-label::after {
    background-color: #5a3d9e;
}

.sms-group {
    display: flex;
    gap: 10px;
}

.sms-input {
    flex: 1;
}

/* 优化后的验证码按钮样式 */
.sms-btn {
    width: 150px;
    background-color: #5a3d9e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.sms-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.sms-btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* 优化select样式 */
.select-wrapper {
    position: relative;
}

.select-wrapper:after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 12px;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    height: 44px;
    -webkit-border-radius: 5px;
    background-image: none;
}

/* 解决IE11 select箭头问题 */
.form-select::-ms-expand {
    display: none;
}

.agree-group {
    display: flex;
    align-items: center;
    margin: 25px 0;
    font-size: 14px;
    color: #666;
}

.agree-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.agree-checkbox:checked {
    background-color: #5a3d9e;
    border-color: #5a3d9e;
    position: relative;
}

.agree-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#agreeProtocol {
    width: 40px;
    height: 20px;
}

.protocol-link {
    color: #5a3d9e;
    text-decoration: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    -webkit-appearance: none;
}

#dkAgreeamentContent {
    line-height: 2;
    font-size: 14px;
    padding: 10px;
    color: #000;
    height: 60vh;
    overflow: hidden;
    overflow-y: auto;
    text-align: left;
}

/* 解决iOS按钮点击高亮问题 */
.submit-btn:active {
    opacity: 0.9;
}


/* 添加多选框样式 - 与性别选项相似 */
.qualification-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.qualification-option {
    flex: 1;
}

.qualification-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.qualification-label {
    display: block;
    padding: 10px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qualification-checkbox:checked+.qualification-label {
    border-color: #5a3d9e;
    background-color: #f0e6ff;
    color: #5a3d9e;
    font-weight: 500;
}

.qualification-checkbox:active+.qualification-label {
    transform: scale(0.98);
}

/* 单选框组样式 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.radio-option {
    flex: 1;
    min-width: 100px;
}

.radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    display: block;
    padding: 10px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-input:checked+.radio-label {
    border-color: #5a3d9e;
    background-color: #f0e6ff;
    color: #5a3d9e;
    font-weight: 500;
}

/* 多选框组样式 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-option {
    width: 48%;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-label {
    display: block;
    padding: 10px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-input:checked+.checkbox-label {
    border-color: #5a3d9e;
    background-color: #f0e6ff;
    color: #5a3d9e;
    font-weight: 500;
}